Skip to content

Compose Firebase InAppMessaging#1498

Merged
thatfiredev merged 2 commits intofirebase:composefrom
argzdev:inappmessaging-compose
Mar 6, 2026
Merged

Compose Firebase InAppMessaging#1498
thatfiredev merged 2 commits intofirebase:composefrom
argzdev:inappmessaging-compose

Conversation

@argzdev
Copy link

@argzdev argzdev commented May 23, 2023

Adding Jetpack compose option to the Firebase In-App Messaging quickstart.

@thatfiredev

- Transferred business logic to ViewModel sharable to the `KotlinMainActivity` and `ComposeMainActivity`
@argzdev argzdev changed the base branch from master to compose May 23, 2023 18:44
@thatfiredev
Copy link
Member

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a Jetpack Compose implementation to the Firebase In-App Messaging quickstart. It introduces a ComposeMainActivity and a shared InAppMessagingViewModel to handle logic, which is a solid architectural choice. The existing KotlinMainActivity is also refactored to use this new ViewModel, improving code structure and reusability. My review includes suggestions for improving accessibility, removing hardcoded strings, and refining some of the new Kotlin and Compose code.

}

companion object {
private const val TAG = "Compose-FIAM-Quickstart"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The TAG constant is declared but never used within ComposeMainActivity. It can be removed to clean up the code.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copy link
Member

@thatfiredev thatfiredev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @argzdev !!

@thatfiredev thatfiredev merged commit 54f2d2c into firebase:compose Mar 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants